package cn.hdu.liang.interfaces;

import java.util.Random;

public class RandomDoubles {
    private static Random rand = new Random(47);

    public double next() {
        return rand.nextDouble();
    }

    public static void main(String[] args) {
        RandomDoubles rd = new RandomDoubles();
        for(int i = 0; i < 6; i++) {
            System.out.print(rd.next() + "  ");
        }
    }
}
